<%@ page language="java" import="java.util.*,com.ncp.model.entity.registerlogin.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
UserBasicBean ubb=(UserBasicBean)request.getAttribute("ubb");
String s=ubb.getStatus();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'userupdate.jsp' starting page</title>
  </head>
  
  <body>
  	<form method=post action="UserClServlet">
  		<input type="hidden" name="type" value="update1">
    	<table>
   		<tr><td>ID</td><td><input readonly type=text name=id value="<%=ubb.getUserID() %>"></td></tr>
  		<tr><td>登录名</td><td><input readonly type=text name=loginname value="<%=ubb.getUserLoginName() %>"></td></tr>
  		<tr><td>密码</td><td><input readonly type=password name=password value="<%=ubb.getPassWord() %>"></td></tr>
  		<tr><td>级别</td><td><input type=text name=level value="<%=ubb.getLevelID() %>"></td></tr>
  		<tr><td>姓名</td><td><input readonly type=text name=username value="<%=ubb.getUserName() %>"></td></tr>
  		<tr><td>电子邮件</td><td><input readonly type=text name=email value="<%=ubb.getEmail() %>"></td></tr>
  		<tr><td>联系电话</td><td><input readonly type=text name=tel value="<%=ubb.getTel() %>"></td></tr>
  		<tr><td>地址</td><td><input readonly type=text name=address value="<%=ubb.getAddress() %>"></td></tr>
  		<tr><td>注册时间</td><td><input readonly type=text name=date value="<%=ubb.getRegisterDate() %>"></td></tr>
  		<tr><td>状态</td><td>
  							<select name="status">
  							<option value="<%=ubb.getStatus() %>" selected="selected"><%=ubb.getStatus() %></option>
  							<%
  							if(s.equals("true")){
  								%>
  								<option value="false">false</option>
  								<%
  							}else{
  								%>
  								<option value="true">true</option>
  								<%
  							}
  							%>
  							</select>
  						</td></tr>
   		<tr><center><td><input type=submit value=确定></center></td></tr>
    </table>
    </form>
  </body>
</html>
